﻿using System;

class GreaterInteger
{
    static void Main()
    {
        Console.WriteLine("A program that prints the greater of two integers without using \"if\" statement.");
        Console.WriteLine("Enter the first number:");

        string consoleInput = Console.ReadLine();
        int integerOne = int.Parse(consoleInput);

        Console.WriteLine("Enter the second number:");

        consoleInput = Console.ReadLine();
        int integerTwo = int.Parse(consoleInput);
        int greaterInteger = Convert.ToInt32(integerOne > integerTwo) * integerOne + Convert.ToInt32(integerOne < integerTwo) * integerTwo;

        Console.WriteLine("The greater number is: {0}", greaterInteger);
    }
}